package com.ykdl.member.kid.gears;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

import net.wxxr.dataparse.model.DataParseError;
import net.wxxr.dataparse.model.DataState;
import net.wxxr.http.interfaces.ITag;
import net.wxxr.http.request.HttpBaseRequest;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.ImageView.ScaleType;
import android.widget.LinearLayout;
import android.widget.Toast;

import com.ykdl.member.kid.R;
import com.ykdl.member.KidApp;
import com.ykdl.member.constant.KidAction;
import com.ykdl.member.constant.KidConfig;
import com.ykdl.member.kid.adapters.NewTalentAdapter;
import com.ykdl.member.kid.adapters.ShowsiteAdatper;
import com.ykdl.member.kid.advert.AdvertListActivity;
import com.ykdl.member.kid.beans.AdvertBean;
import com.ykdl.member.kid.beans.AdvertListBean;
import com.ykdl.member.kid.beans.HomeMessageCount;
import com.ykdl.member.kid.beans.Memberlistbean;
import com.ykdl.member.kid.doctor.AskDoctorActivity;
import com.ykdl.member.kid.doctor.DoctorOnlineListActivity;
import com.ykdl.member.kid.fittool.FeedToolActivity;
import com.ykdl.member.kid.fittool.HeightWeightHeadActivity;
import com.ykdl.member.kid.image.ImageLoader;
import com.ykdl.member.kid.person.PersonCenterActivity;
import com.ykdl.member.kid.prefs.MyPrefs;
import com.ykdl.member.kid.set.SettingActivity;
import com.ykdl.member.kid.util.AccessTokenKeeper;
import com.ykdl.member.kid.util.RequestAsAccessTokenUtil;
import com.ykdl.member.views.DetialGallery;
import com.ykdl.member.views.IaskMenuBarView;
import com.ykdl.member.views.MyGridView;
import com.ykdl.member.views.ScrollLayout;
import com.ykdl.net.manager.TaskManager;
import com.ykdl.net.manager.Wxxr;
public class FindOtherActivity extends BaseScreen implements OnClickListener{
	private KidApp mApplication ;
	private IaskMenuBarView iaskMenuBarView;
	
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setTopTitle("更多", 0, 0, null, 0, 0, null, R.drawable.title_bg, false);
		setContent(R.layout.findotheractivity_xml);
		mApplication = (KidApp)this.getApplication();
		init();
		}
	public void init() {
		iaskMenuBarView = (IaskMenuBarView) findViewById(R.id.iask_menu_bar);
		iaskMenuBarView.setSelectedID(R.id.menu_persfind);
		iaskMenuBarView.setBaseScreen(this);
		findViewById(R.id.preson).setOnClickListener(this);
		findViewById(R.id.ask_doctor).setOnClickListener(this);
		findViewById(R.id.zhuanjia_zuozhen).setOnClickListener(this);
		findViewById(R.id.shengao_tizhong).setOnClickListener(this);
		findViewById(R.id.weiyangjilu).setOnClickListener(this);
		findViewById(R.id.huodong).setOnClickListener(this);
		findViewById(R.id.set_regdiv).setOnClickListener(this);
		
	}
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.preson:
			go(PersonCenterActivity.class);
			break;
		case R.id.ask_doctor:
			go(AskDoctorActivity.class);
			break;
		case R.id.zhuanjia_zuozhen:
			go(DoctorOnlineListActivity.class);
			break;
		case R.id.shengao_tizhong:
			go(HeightWeightHeadActivity.class);
			break;
		case R.id.weiyangjilu:
			go(FeedToolActivity.class);
			break;
		case R.id.huodong:
			go(AdvertListActivity.class);
			break;
		case R.id.set_regdiv:
			go(SettingActivity.class);
			break;

		default:
			break;
		}
	}
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		// TODO Auto-generated method stub
		if (keyCode == KeyEvent.KEYCODE_BACK) {
			go(HomeActivity.class);
			finish();
		}
		return super.onKeyDown(keyCode, event);
	}

}
